extends "../shenghei-3/shenghei-3.gd"


var baseId = ""
var upText1 = "圣黑冲击格挡几率+5%"
var upText2 = "圣黑冲击反弹伤害提高3倍"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("25%几率格挡并反弹来自敌方非塞壬单位的伤害", "圣黑冲击")

func _onHurt(atkInfo):
	._onHurt(atkInfo)
	if sys.rndPer(p41) and atkInfo.atkCha.team != team and atkInfo.atkCha.camp != "塞壬":
		atkInfo.virtual = true
		azurHurtChara(atkInfo.atkCha, atkInfo.atkVal, sys.HurtType.WEAPON, sys.AtkType.EFF, "圣黑冲击", false, p42)

var p41 = 25
var p42 = 1
func upgrade():
	.upgrade()
	if upgraded == 1:
		p41 = 30
	if upgraded == 2:
		p42 = 3